package com.rui.visitor.model;

import com.rui.visitor.obj.Employee;
import com.rui.visitor.obj.IVisitor;
import lombok.AllArgsConstructor;

import java.util.List;

@AllArgsConstructor
public class Report {

    private List<Employee> employeeList;

    public void showReport(IVisitor visitor) {
        for (Employee employee : employeeList) {
            employee.accept(visitor);
        }
    }

}
